﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ihongma.Web.UI.Page.webcaseshow" ValidateRequest="false" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="ihongma.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by ihongma Template Engine at 2013/9/5 17:13:43.
		本页面代码由ihongma模板引擎生成于 2013/9/5 17:13:43. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	const int channel_id = 11;

	templateBuilder.Append("<!DOCTYPE HTML>\r\n<html lang=\"zh-CN\">\r\n<head>\r\n<meta charset=\"utf-8\" />\r\n<title>");
	templateBuilder.Append(model.name);
	templateBuilder.Append("|鸿马</title>\r\n<meta name=\"description\" content=\"");
	templateBuilder.Append(Utils.DropHTML(model.describe,180));

	templateBuilder.Append("\" />\r\n<meta name=\"keywords\" content=\"");
	templateBuilder.Append(model.name);
	templateBuilder.Append("，网站设计， 网站建设，网站，高端建站\" />\r\n ");

	templateBuilder.Append("<meta content=\"all, index, follow\" name=\"robots\">\r\n<meta content=\"Copyright 2013 ihongma.com\" name=\"copyright\">\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n<link rel=\"shortcut icon\" href=\"/favicon.ico\">\r\n<link rel=\"stylesheet\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/global.css\"\r\ntype=\"text/css\" media=\"screen\" />\r\n<link rel=\"stylesheet\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/font-awesome.min.css\">\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:1483px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max1483.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:1232px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max1232.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:991px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max991.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:750px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max750.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:479px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max479.css\"\r\n/>");


	templateBuilder.Append("\r\n\r\n<body>\r\n\r\n ");

	templateBuilder.Append("<header>\r\n<script>\r\n    function submitTest() {\r\n        if ($(\"#d_search\").val() == \"\")\r\n        { return false; }\r\n        else {\r\n            return true;\r\n        }\r\n    }\r\n</");
	templateBuilder.Append("script>\r\n  <div class=\"wrapper\">\r\n    <a class=\"logo\" href=\"http://www.ihongma.com/\" title=\"鸿马网\">鸿马网</a>\r\n    <div class=\"search\">\r\n    <form method=\"get\"  action=\"/search.aspx\"   onsubmit='return submitTest()'>\r\n      <input class=\"submit_input\" id=\"d_search\" name=\"keyword\" placeholder=\"Search...\" type=\"text\">\r\n      <input class=\"submit_button\" value=\"Search\" type=\"submit\">\r\n       </form>\r\n    </div>\r\n    <div class=\"menu_icon\"><span class=\"icon-align-justify\"></span></div>\r\n    <div class=\"menu\">\r\n      <ul>\r\n      <li><a id=\"a0\"  href=\"/\">首页</a></li>\r\n      <li><a id=\"a11\" href=\"");
	templateBuilder.Append(linkurl("design_list1",""));

	templateBuilder.Append("\">网站设计</a></li>\r\n      <li><a id=\"a14\" href=\"");
	templateBuilder.Append(linkurl("services",""));

	templateBuilder.Append("\">鸿马服务</a></li>\r\n      <li><a id=\"a13\" href=\"");
	templateBuilder.Append(linkurl("ajax_list1",""));

	templateBuilder.Append("\">JS特效</a></li>\r\n      <li><a id=\"a10\" href=\"");
	templateBuilder.Append(linkurl("photo_list1",""));

	templateBuilder.Append("\">图片库</a></li>\r\n      <li><a id=\"a1\" href=\"");
	templateBuilder.Append(linkurl("article_list1",""));

	templateBuilder.Append("\">有趣的事</a></li>\r\n      </ul>\r\n      <div class=\"menu_close\"><span class=\"icon-remove\"></span></div>\r\n    </div>\r\n  </div>\r\n  <hr> \r\n</header>");


	templateBuilder.Append("\r\n\r\n<div class=\"wrapper\">\r\n  <div class=\"list_carousel list_carouselShow\">\r\n    <ul id=\"hotNews\">\r\n      \r\n\r\n       ");
	            System.Collections.Generic.List<ihongma.Model.web_photo> photomodel=model.Photolist;
	     StringBuilder strtag = new StringBuilder();
	         string showtag;
	         System.Web.Script.Serialization.JavaScriptSerializer java = new System.Web.Script.Serialization.JavaScriptSerializer();
		     
	     foreach(ihongma.Model.web_photo  phtom in photomodel)
	     {
	        strtag.Append(GetAlbumHtml(phtom.id.ToString(),java.Serialize(phtom.Taglist)));
	           
	       

	templateBuilder.Append("\r\n                <li><span class=\"img photo-container\"><img alt=\"\"   id=\"photo");
	templateBuilder.Append(phtom.id);
	templateBuilder.Append("\" name=\"photo");
	templateBuilder.Append(phtom.id);
	templateBuilder.Append("\" src=\"");
	templateBuilder.Append(phtom.big_img);
	templateBuilder.Append("\" ></span></li>\r\n            ");
	            
	            }
	             showtag = "{" + strtag.ToString() + "}";
	             if (showtag.EndsWith(",}"))
	             {
	                 showtag = showtag.Remove(showtag.Length - 2, 1);
	             }
	            

	templateBuilder.Append("\r\n           \r\n    \r\n    </ul>\r\n    <div class=\"clearfix\"></div>\r\n    <div id=\"sliderpager1\" class=\"sliderpager_show\"></div>\r\n\r\n  </div>\r\n  <script src=\"../../scripts/phototagger.jquery.js\" type=\"text/javascript\"></");
	templateBuilder.Append("script>\r\n    <script type=\"text/javascript\" src=\"../../scripts/coldfusion.json.js\"></");
	templateBuilder.Append("script>\r\n            <script type=\"text/javascript\">\r\n                var agegaglist = '");
	templateBuilder.Append(showtag);
	templateBuilder.Append("';\r\n\r\n                // alert( eval('('+agegaglist+')')[0]);\r\n                $(function () {\r\n                    $(\"span.photo-container\").photoTagger({\r\n                        loadURL: agegaglist,\r\n                        saveURL: \"./save_Tag.cfm\",\r\n                        deleteURL: \"./delete_tag.cfm\",\r\n                        cleanAJAXResponse: cleanColdFusionJSONResponse\r\n                    });\r\n\r\n                });\r\n    \r\n    </");
	templateBuilder.Append("script>\r\n  <div class=\"item_col\">\r\n    <h1>");
	templateBuilder.Append(model.name);
	templateBuilder.Append("</h1>\r\n    <div class=\"credits\">\r\n    ");
	    string locktexs=model.state==1?"解锁":"已解锁";
	string taglist=model.tags.Contains(",")?model.tags.Split(',')[0]:model.tags;
	       

	templateBuilder.Append("\r\n      <p><span>状态：</span> ");
	templateBuilder.Append(locktexs);
	templateBuilder.Append(" </p>\r\n      <p><span>网站：</span><a href=\"");
	templateBuilder.Append(model.weburl);
	templateBuilder.Append("\" target=\"_blank\"> ");
	templateBuilder.Append(model.weburl);
	templateBuilder.Append(" </a></p>\r\n    </div>\r\n    <h4>描述：</h4>\r\n    <p class=\"italic\">");
	templateBuilder.Append(model.describe);
	templateBuilder.Append("</p>\r\n    <h4>标签：</h4>\r\n    <p class=\"tags\">");
	DataTable tag_list2 = get_tags_list("id in ("+model.tags+")");
	

	int tagr12__loop__id=0;
	foreach(DataRow tagr12 in tag_list2.Rows)
	{
		tagr12__loop__id++;


	templateBuilder.Append(" <a href=\"");
	templateBuilder.Append(linkurl("design_list2",tagr12["id"].ToString().Trim(),1));

	templateBuilder.Append(" \">" + tagr12["name"].ToString().Trim() + "</a>");
	}	//end loop


	templateBuilder.Append("</p>\r\n  </div>\r\n  <div class=\"clearfix\"></div>\r\n  <hr>\r\n  <h1>相关类别：</h1>\r\n  <ul class=\"listitem sublistitem\">\r\n  ");
	DataTable article_list5 = get_website_list(11,4, "tags like '%"+taglist+"%' and id<>"+model.id+" ");
	

	int adr5__loop__id=0;
	foreach(DataRow adr5 in article_list5.Rows)
	{
		adr5__loop__id++;


	    string locktex=adr5["state"].ToString()=="1"?"当前锁定状态，可以购买":"当前解锁状态";
	
	
	 
	    

	templateBuilder.Append("\r\n    <li>\r\n      <div class=\"screenshot\">\r\n    <a href=\"");
	templateBuilder.Append(linkurl("design_show",adr5["id"].ToString().Trim()));

	templateBuilder.Append("\"><img src=\"" + adr5["img"].ToString().Trim() + "\" >\r\n        <div class=\"info\">\r\n          <div class=\"state\">");
	templateBuilder.Append(locktex);
	templateBuilder.Append("</div>\r\n        </div>\r\n        </a>\r\n      </div>\r\n      <div class=\"name\"><a href=\"");
	templateBuilder.Append(linkurl("design_show",adr5["id"].ToString().Trim()));

	templateBuilder.Append("\">" + adr5["name"].ToString().Trim() + "</a></div>\r\n      <div class=\"tag\">\r\n        <i>标签:</i> \r\n        ");
	DataTable tag_list = get_tags_list("id in ("+adr5["tags"].ToString().Trim()+")");
	

	int tagr1__loop__id=0;
	foreach(DataRow tagr1 in tag_list.Rows)
	{
		tagr1__loop__id++;


	templateBuilder.Append(" <a href=\"");
	templateBuilder.Append(linkurl("design_list2",tagr1["id"].ToString().Trim(),1));

	templateBuilder.Append("\">" + tagr1["name"].ToString().Trim() + "</a>\r\n        \r\n        ");
	}	//end loop


	templateBuilder.Append("\r\n      </div>\r\n    </li>\r\n     ");
	}	//end loop


	templateBuilder.Append("\r\n    \r\n  </ul>\r\n  \r\n  <div class=\"clearfix margin_top30\"></div>\r\n  \r\n</div> \r\n  \r\n  \r\n\r\n\r\n  ");

	templateBuilder.Append("<footer>\r\n  <div class=\"wrapper\">\r\n    <div class=\"sitemap\"><strong>IHONG<font class=\"hongmaColor\">MA</font></strong><br><a href=\"#\">sitemap</a></div>\r\n    <p class=\"usfrid\">\r\n      <strong>访问我们的好友</strong><span><a href=\"http://www.microsoft.com/\" target=\"_blank\">微软</a>|<a href=\"http://feixin.10086.cn/\" target=\"_blank\">飞信</a>|<a href=\"http://www.bjhqlc.com/\" target=\"_blank\">华强联创</a>|<a href=\"http://www.canyin.com/\" target=\"_blank\">中国餐饮网</a>|<a href=\"http://www.baidu.com/\" target=\"_blank\">百度</a>|<a href=\"http://www.csdn.net/\" target=\"_blank\">csdn</a></span>\r\n    </p>\r\n    <p class=\"cp\">Copyright &copy; <strong>Ihongma</strong> 京ICP备12052092号&nbsp;&nbsp;&nbsp;<span><a href=\"/services.aspx\">鸿马服务</a>|<a href=\"/contact_sub.aspx\">联系我们</a>|<a href=\"/content/about.aspx\">关于我们</a></span><br><a class=\"blog\"  target=\"_blank\" href=\"http://e.weibo.com/ihongma\">微博关注</a></p>\r\n    <div class=\"clearfix\"></div>\r\n  </div>\r\n</footer>\r\n\r\n\r\n\r\n\r\n\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery-1.7.1.min.js\"></");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery-ui.js\"></");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/ihongma.js\"></");
	templateBuilder.Append("script>\r\n<!--[if lt IE 9]>\r\n<script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\"></");
	templateBuilder.Append("script>\r\n<script src=\"http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js\"></");
	templateBuilder.Append("script>\r\n<![endif]-->\r\n\r\n\r\n<!-- include jQuery + carouFredSel plugin -->\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery.carouFredSel-6.2.1-packed.js\"></");
	templateBuilder.Append("script>");


	templateBuilder.Append("\r\n\r\n\r\n\r\n</body>\r\n</html>");
	Response.Write(templateBuilder.ToString());
}
</script>
